#ifndef GAMES_H
#define GAMES_H

#include <QDialog>
namespace Ui
{
    class games;
}

class games : public QDialog
{
    Q_OBJECT

public:
    explicit games(QWidget *parent = nullptr);
    ~games();
    void enterEvent(QEvent *event);
    void closeEvent(QCloseEvent *event);
    void mouseReleaseEvent(QMouseEvent* event);
    void colorSelect();
    void fileSelect();
    void saveFile();
    void createFile();
    int x;
    int y;

protected:
    void paintEvent(QPaintEvent *event) override;

private slots:
    void updateAngle();
    void on_pushButton_clicked();
    void on_pushButton_2_clicked();
    void on_pushButton_3_clicked();

    void on_lineEdit_textChanged(const QString &arg1);

    void on_pushButton_4_clicked();

private:
    Ui::games *ui;
    int angle; // 添加angle成员变量
    QString fileName;
};

#endif // GAMES_H
